#ifndef _CHUNKCONNMGR_H_
#define _CHUNKCONNMGR_H_

#include "../Common/AllTool.h"

enum CHUNK_CONN_STATE
{
	CCS_DISCONNECT	= 0,
	CCS_CONNECTED,
};

struct CHUNK_CONN_INFO
{
	tstring	tsChunkIp;
	int		iChunkPort;
	UINT64	uLastRecv;
	YYNet	Net;
	enum CHUNK_CONN_STATE State;
};

int StartChunkConnMgr();
int StopChunkConnMgr();
int SendCommandToChunk(tstring tsIp,int iPort,COMMAND &cmd);
#endif